package Cau9;

import java.io.Serializable;
import java.util.ArrayList;

public class DataPacket implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int type;
	private int size;
	private ArrayList<Rectangle> recs = new ArrayList<Rectangle>();
	private ArrayList<Oval> ovals = new ArrayList<Oval>();
	private ArrayList<Line> lines = new ArrayList<Line>();
	private ArrayList<Triangle> triangles = new ArrayList<Triangle>();
	public DataPacket(){
		type = 0;
		size = 0;
	}
	public void setType(int i){
		type = i;
	}
	public int getType(){
		return type;
	}
	public void setSize(int s){
		size = s;
	}
	public int getSize(){
		return size;
	}
	public void setRectangles(ArrayList<Rectangle> recs){
		this.recs = recs;
	}
	public ArrayList<Rectangle> getRectangles(){
		return recs;
	}
	public void setOvals(ArrayList<Oval> ovals){
		this.ovals = ovals;
	}
	public ArrayList<Oval> getOvals(){
		return ovals;
	}
	public void setLines(ArrayList<Line> lines){
		this.lines = lines;
	}
	public ArrayList<Line> getLines(){
		return lines;
	}
	public void setTriangles(ArrayList<Triangle> triangles){
		this.triangles = triangles;
	}
	public ArrayList<Triangle> getTriangles(){
		return triangles;
	}
	}
